package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.Light;
import com.woniuxy.light_smart.mapper.LightMapper;
import com.woniuxy.light_smart.service.LightService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LightServiceImpl implements LightService {
    @Resource
    private LightMapper lightMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return lightMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(Light record) {
        return lightMapper.insertSelective(record);
    }

    @Override
    public Light selectByPrimaryKey(Long id) {
        return lightMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Light record) {
        return lightMapper.updateByPrimaryKeySelective(record);
    }
}
